package com.example.test.lock;

public class Count {

    private int value;


    public  synchronized int getValue(){
        return value;
    }


    public synchronized void add(){
        value++;
    }
}
